<?php 

/**
* 魔术方法
*/
class Test
{
	public $age;
	function __get($name)
	{
		echo $name ;
	}
	function __set($name,$value)
	{
		var_dump($name,$value);
	}
	
}
$obj = new Test();

$obj->age ='6666';

echo $obj->age;



 ?>